 <?
if (!defined('baseinfo')) {
    exitdata();
    
}  
if($data['templatefollow']||$data['templatesuggetion']||$data['templatemessages']||$data['templateuser']==3)
{
?>
<div class="subB clTxt1 fs05 clBg4">
    <div class="wrpSubB mainSB">
        <div class="ttlB cutTxt"><?if($data['templateuser']==3){ echo "News Feed"; } else if($data['templatesuggetion']){ echo "Friends Suggestion";  }else if($data['templatemessages']){ echo "Message";  } else {?>Follow<?}?></div>
   
    <?
    if($data['templateuser']==3){
   include("sort.php");
    }
   ?>
    </div>
    
</div>

<?

}
else
{
?>
<div class="subB clTxt2 fs05 clBg4 userSlctNone">
    <div class="wrpSubB pfSB">
        <div class="ttlB fs05">
            <div class="wrpNavB tgCl wrpPoiB clBd2 <?if($data['defaultprofile']){ echo "clSp2";}?>" onclick="<?="location.href='".baseinfo."/".$data['userdata']['username']."'"?>" >
                <span class="fs07"><?=$data['userdata']['countproduct']?></span><br>
                <span class="fs05">Posts
                </span>
            </div>
            <div class="wrpNavB tgCl wrpFavB clBd2 <?if($data['fav']){ echo "clSp2";}?>" onclick="<?="location.href='".baseinfo."/".$data['userdata']['username']."/favorites'"?>" >
                <span class="fs07"><?=$data['userdata']['countlikeproduct']?></span><br>
                <span class="fs05">Bookmark</span>
            </div>
            <div class="wrpNavB tgCl wrpTagB <?if($data['tag']){ echo "clSp2";}?>" onclick="<?="location.href='".baseinfo."/".$data['userdata']['username']."/tag'"?>">
                <span class="fs07"><?=$data['userdata']['counttagproduct']?></span><br>
                <span class="fs05">Tags</span>
            </div>
        </div>
        <div class="sortB clTxt1 fs05">
            <span><? if($data['featurename']){ echo ucfirst($data['featurename']); }else{?>All Features<?}?></span>
            <span class="ico icoArwDwnSort"></span>
            <div class="genMenuListPop sortHome">
                <div class="wrpMenuListPop">
                    <div class="triang triGen"></div>
                    <div class="wrpMLP">
                        <div class="bgMLPT clBg5"></div>
                        <div class="mLP clBg5 clTxt3 ">
                            <div class="btnMLP"><a class="btnLstSBL" href="<?=baseinfo.$data['urlnow']?>" data-href="<?=$valuefeature['link']?>">All Features</a></div>
                            
                             <?
                     if(count($data['feature']))
                     {
                      foreach($data['feature'] as $valuefeature)
                      {
                     ?>

                     
                     <div class="btnMLP"><a class="btnLstSBL" href="<?=baseinfo.$data['urlnow'].'/'.$valuefeature['link']?>" data-href="<?=$valuefeature['link']?>"><?=ucfirst($valuefeature['name'])?></a></div>
                     
                    <?
                      }
                     }
                    
                    ?>                  

                        </div>
                        <div class="bgMLPB clBg5"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<?}

?>